package com.alone.mybatisplus.datascope.core.domain;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Alone
 */
@Getter
public abstract class DataScope {

    protected DataScope(boolean allowAll) {
        this.allowAll = allowAll;
    }

    @Setter
    private boolean allowAll;

    /**
     * 获取渲染完毕的sql
     *
     * @param orgSql 原始sql
     * @return 渲染完毕sql
     */
    public abstract String getRenderedSql(String orgSql);


}
